import service from '/@/utils/request';

export function useLoginApi(data: object) {
	return service({
		url: '/admin/system/index/login',
		method: 'post',
		data,
	});
}
//生 成验证码
export function getImage(){
	return service({
		url: '/admin/system/index/generateValidateCode',
		method: 'get',
	});
}
//获取用户信息
export function getUserInfo(){
	return service({
		url: '/admin/system/index/getUserInfo',
		method: 'get',
	});
}
//用户退出
export function delToken(){
	return service({
		url: '/admin/system/index/logout',
		method: 'get',
	});
}